<ion-view view-title="选择优惠" hide-tabs="true">
  <ion-content class="content padding-top ionic-pseudo bgeee">
        <div class="item-voucherout" ng-repeat="discount in discounts" ng-click="select(discount)">
          <div class="item-voucher">
            <div class="voucherin">
              <div class="left-box">
                <div class="padding left-boxin">
                    <h1 class="tc size-16">{{discount.name}}</h1>
                截止时间：{{discount.endTime | date: 'yyyy-MM-dd'}}<br>
                使用说明：
                <a ng-if="discount.type==1">投资金</a>
                <a ng-if="discount.type==2">加息券</a>
                <a ng-if="discount.type==3">代金券</a>
                -{{discount.useDesc}}<br>
                </div>
              </div>
              <div class="right-box">
                <div class="padding tc right-boxin">
                <h1 class="tc size-16">
                  <a ng-if="discount.state==0">未使用</a>
                  <a ng-if="discount.state==1">已使用</a>
                </h1>
                <b class="assertive size-21" ng-if="discount.type!=2">{{discount.amount}}元</b>
                <b class="assertive size-21" ng-if="discount.type==2">{{discount.interestPercent}}%</b><br>
                <br>
                </div>
              </div>
            </div>
            <div class="left-ball"></div>
            <div class="right-ball"></div>            
          </div>
          <i class="icon selecticon positive ion-ios-checkmark" ng-if="payData.discountId==discount.id"></i>
        </div>
    <div class="button-bar padding-horizontal tc">
      <button class="button button-full button-light" ng-click="select()">本次不使用优惠券
        </button>
    </div>
  </ion-content>
</ion-view>